package com.lizhi.yun.db.sfrobot.repository;

import com.lizhi.yun.db.sfrobot.entity.TrainingRecord;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface TrainingRecordRepo extends JpaRepository<TrainingRecord, Long>, JpaSpecificationExecutor<TrainingRecord> {

    List<TrainingRecord> queryAllByPatientIdAndHospitalIdAndHospitalSystemIdOrderByCreatedTimeDesc(String patientId, String hospitalId, String hospitalSystemId);
}
